﻿<Controls:SinacorWindow                                                                              
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
    xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"    
    xmlns:Local="clr-namespace:Sinacor.UI.Bovespa.Operador.View.SmartClient"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:Model="clr-namespace:Sinacor.UI.Bovespa.Operador.Model;assembly=Sinacor.UI.Bovespa.Operador.Model"
	xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"    
    xmlns:Validation="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Validation;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Edit="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Edit;assembly=Sinacor.Infra.UI.Controls"                            
    WindowStartupLocation="CenterScreen" 
    AutoContentHeight="True" 
    AutoContentWidth="True"
    WindowState="Normal"       
    Title="{DynamicResource Bovespa.Operador.Label.CadastroPreferencias}"
	Width="730"
	Height="338"    
	x:Class="Sinacor.UI.Bovespa.Operador.View.SmartClient.CadastroPreferencias"
    ModulePlus="False"
    ModuleId="ORD" AfterInitialize="CadastroPreferencias_AfterInitialize">
    <Controls:SinacorExpanderContainer>
        <Controls:SinacorExpander Name="ExpPreferencias" 
                                  Header="{DynamicResource Bovespa.Operador.Label.Preferencias}" AllowExpand="False" IsExpanded="True">
            <Grid HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch"
                  Width="Auto"
                  Height="Auto">
                <Controls:SinacorGroupBox Name="GrpMercado"                                          
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header="{DynamicResource Bovespa.Operador.Label.Mercado}"
                                          Height="205"
                                          Width="130">
                    <Grid>
                        <Controls:SinacorRadioButton Name="RdbVista"                                                     
                                                     Content="{DynamicResource Bovespa.Operador.Label.Vista}"                                                     
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
													 TabIndex="1" />
                        <Controls:SinacorRadioButton Name="RdbFracionario"
                                                     Content="{DynamicResource Bovespa.Operador.Label.Fracionario}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,25,0,0"
													 TabIndex="2"/>
                        <Controls:SinacorRadioButton Name="RdbTermo"
                                                     Content="{DynamicResource Bovespa.Operador.Label.Termo}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,50,0,0"
													 TabIndex="3"/>
                        <Controls:SinacorRadioButton Name="RdbOpcoes"
                                                     Content="{DynamicResource Bovespa.Operador.Label.Opcoes}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,75,0,0"
													 TabIndex="4"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox Name="GrpTipoOrdem" 
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header="{DynamicResource Bovespa.Operador.Label.TipoOrdem}"
                                          Height="205"
                                          Width="130"
                                          Margin="134,0,0,0">
                    <Grid>
                        <Controls:SinacorRadioButton Name="RdbAdministrada" 
                                                     Content="{DynamicResource Bovespa.Operador.Label.Administrada}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
													 TabIndex="5"/>
                        <Controls:SinacorRadioButton Name="RdbFinanciamento" 
                                                     Content="{DynamicResource Bovespa.Operador.Label.Financiamento}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,25,0,0"
													 TabIndex="6"/>
                        <Controls:SinacorRadioButton Name="RdbOnStop" 
                                                     Content="{DynamicResource Bovespa.Operador.Label.OnStop}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,50,0,0"
													 TabIndex="8"/>
                        <Controls:SinacorRadioButton Name="RdbMercado" 
                                                     Content="{DynamicResource Bovespa.Operador.Label.Mercado}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,75,0,0"
													 TabIndex="9"/>
                        <Controls:SinacorRadioButton Name="RdbLimitada" Content="{DynamicResource Bovespa.Operador.Label.Limitada}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,100,0,0"
													 TabIndex="10"/>
                        <Controls:SinacorRadioButton Name="RdbCasada"
                                                     Content="{DynamicResource Bovespa.Operador.Label.Casada}"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top"
                                                     Margin="0,125,0,0"
													 TabIndex="11"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox Name="GrpGerais" 
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header="{DynamicResource Bovespa.Operador.Label.Gerais}"
                                          Height="205"
                                          Width="400"
                                          Margin="268,0,0,0">
                    <Grid>
                        <Controls:SinacorLabel Name="LblBolsa" 
                                               Content="{DynamicResource Bovespa.Operador.Label.Bolsa}"
                                               HorizontalAlignment="Left"
                                               VerticalAlignment="Top"      
                                               Width="60"/>
                        <Controls:SinacorComboBox Name="CmbBolsa"
                                                  ItemsSource="{Binding CadastroPreferenciasOperador.Bolsas, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" 
                                                  DisplayMemberPath="Descricao"                                                      
                                                  SelectedValue="{Binding BolsaSelecionada.Codigo}"                                                  
                                                  SelectedValuePath="Codigo"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsRequired="True"
                                                  Margin="64,0,0,0"
                                                  Width="250"
												  TabIndex="12"/>
                        <Controls:SinacorCheckBox Name="ChkModoInsert"
                                                  Content="{DynamicResource Bovespa.Operador.Label.ModoInsert}"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  IsEnabled="False"
                                                  Visibility="Collapsed"
                                                  Margin="0,25,0,0"
                                                  Width="340"                                                  
												  TabIndex="13"/>
                        <Controls:SinacorCheckBox Name="ChkInsercao" 
                                                  Content="{DynamicResource Bovespa.Operador.Label.Insercao}"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  Margin="0,25,0,0"
                                                  Width="340"
												  TabIndex="14"/>
                        <Controls:SinacorCheckBox Name="ChkPreBoleto" 
                                                  Content="{DynamicResource Bovespa.Operador.Label.PreBoleto}"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  Margin="0,50,0,0"
                                                  Width="340"
												  TabIndex="15"/>
                        <Controls:SinacorCheckBox Name="ChkDecrescente" 
                                                  Content="{DynamicResource Bovespa.Operador.Label.Decrescente}"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  Margin="0,75,0,0"
                                                  Width="340"
												  TabIndex="16"/>
                        <Controls:SinacorCheckBox Name="ChkDataPreBoleto" 
                                                  Content="{DynamicResource Bovespa.Operador.Label.DataPreBoleto}"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Top"
                                                  Margin="0,100,0,0"
                                                  Width="340"
												  TabIndex="17"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorButton Name="BtnSalvar" 
                                        Click="BtnSalvar_Click"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Content="{DynamicResource Bovespa.Operador.Label.Salvar}"
                                        Width="80"
                                        Margin="502,210,0,0"
										TabIndex="18"/>
                <Controls:SinacorButton Name="BtnCancelar" 
                                        Click="BtnCancelar_Click"
                                        Content="{DynamicResource Bovespa.Operador.Label.Desfazer}"
                                        Width="80"
                                        Margin="588,210,0,0"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
										TabIndex="19"/>
            </Grid>
        </Controls:SinacorExpander>
    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>
